class Point3D {
  /** @type {Number} */
  vx;
  /** @type {Number} */
  vy;

  /**
   *  x,y构造
   * @param {Number} x
   * @param {Number} y
   */
  constructor(x, y,z) {
    this.x = x;
    this.y = y;
    this.z = z;
  }
  /**
   *  欧式距离
   * @param {Point3D} point1
   * @param {Point3D} point2
   */
  static len(point1, point2) {

    var len = Math.sqrt((point1.x - point2.x) ** 2 + (point1.y - point2.y) ** 2 + (point1.z - point2.z) ** 2
    );
    return len;
  }
}
module.exports = {Point3D};